package com.example.yuejian21.nongfusanquan.yuejian21.service;

import com.example.yuejian21.nongfusanquan.yuejian21.javabean.Activitybean;
import com.example.yuejian21.nongfusanquan.yuejian21.javabean.ClubActivitybean;
import com.example.yuejian21.nongfusanquan.yuejian21.javabean.Orderactivitybean;


import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Nongfusanquan on 2017-10-11.
 */

public  interface ActivityService {
    @GET("Activity/getActivitylist")
    Call<List<Activitybean>> getAllactivities();

    @GET("Activity/getClubactivity")
    Call<List<ClubActivitybean>> getClubActivity();

    //报名活动
    @GET("Activity/addactivityn")
    Call<Orderactivitybean> addactivityn(@Query("u_id") int u_id,
                                         @Query("a_id") int a_id);
    //获取活动详情
    @GET("Activity/getDetail")
    Call<Activitybean> getDetail(@Query("a_id") int a_id);
}
